-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RTL support for Bootstrap CSS #16200
Conversation
be9aaab
to
71b10db
Compare
71b10db
to
926a049
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcotuts Good catch! Interestingly most of the problems are in the LTR version too. I'll fix these up tomorrow. |
Oh that makes sense. The rule breaks I saw weren't directionally specific. Cool. thumbs up technically for RTL |
LEARNER-1705
7937e03
to
fc3af68
Compare
@OmarIthawi FYI, this story implements RTL support for Bootstrap 4. I used rtlcss as discussed on the OEP (openedx/open-edx-proposals#46), and it appears to work flawlessly. One interesting thing I learned is that Bootstrap uses flexbox which automatically supports RTL in all browsers. So the layout generally just switches without any changes. Running rtlcss just ensures that other rules such as margins and padding are appropriately switched. I'd love your feedback if you see any issues with what we've built here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andy-armstrong I'm really excited about this! An honorary thumbs up!
I'm really impressed that this is happening. It looked like an impossible quest at the beginning. Kudos!
BTW there should be a lot of RTL hickups here and there. This is not a show stopper at all, since it usually can be patched individually. |
Thanks @OmarIthawi. I agree that there will be patches needed for individual issues. A nice feature of rtlcss is that you can use comments to control how it does the translation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Monday, October 16, 2017. |
EdX Release Notice: This PR has been deployed to the production environment. |
LEARNER-1705
Description
This change implements RTL support for Bootstrap. It utilizes the library rtlcss which will convert left-to-right CSS rules into right-to-left versions.
Acceptance Criteria
Sandbox
Testing
Front-end changes:
Assign Github reviewers (as needed)
Post-review